package com.sichen.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sichen.common.utils.PageUtils;
import com.sichen.common.utils.R;
import com.sichen.product.entity.AttrGroupEntity;
import com.sichen.product.vo.AttrGroupRelationVo;
import com.sichen.product.vo.AttrGroupRespVo;
import com.sichen.product.vo.SkuItemVo;
import com.sichen.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author sichen
 * @email 15837757959@163.com
 * @date 2022-05-14 14:44:51
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params , Long id);

    R deleteRelation(AttrGroupRelationVo[] vos);

    List<AttrGroupRespVo> getAttrGroupWithAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

